package com.hex.ds.hdrs.log.service;

import com.hex.ds.hdrs.log.dao.MailSendLogHisDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Package: com.hex.ds.hdrs.log.service
 * @ClassName MailSendLogHisService
 * @Description:
 * @Author: 邮件发送日志历史表处理层<gc.zuo>
 * @Date 2021/7/15 14:15
 * @Version v1.0
 **/
@Slf4j
@Service
public class MailSendLogHisService {

    @Autowired
    private MailSendLogHisDao mailSendLogHisDao;

    /**
     * @Method: dataBackup <br>
     * @Param: [map] <br>
     * @Return: void <br>
     * @Description：备份邮件发送日志数据<br>
     * @Author： gc.zuo<br>
     * @Date： 2021/6/10 16:02 <br>
     * @Version： V1.0<br>
     */
    public void dataBackup(Map map) {
        mailSendLogHisDao.dataBackup(map);
    }

    /**
     * @Method: delByBitchId <br>
     * @Param: [bitchId] <br>
     * @Return: void <br>
     * @Description：根据批次号删除邮件发送日志数据<br>
     * @Author： gc.zuo<br>
     * @Date： 2021/6/10 16:02 <br>
     * @Version： V1.0<br>
     */
    public void delByBitchId(String bitchId) {
        Map map = new HashMap(16);
        map.put("bitchId", bitchId);
        mailSendLogHisDao.delByBitchId(map);
    }
}
